﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Trang_web/Khach_Hang.master" AutoEventWireup="true" CodeFile="Trang_thong_tin_ca_nhan.aspx.cs" Inherits="Trang_web_Trang_thong_tin_ca_nhan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNoiDung" Runat="Server">
    
    <asp:Panel ID="PanelThongTinCN" runat="server" Visible="False">
    <div class="div-table" style="width:580px; text-align: center;">
        <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Mã khách hàng:</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                <asp:Label ID="Ma_KH" runat="server" Text='<%# Eval("idUser") %>' />
            
            </div>
        </div>
        <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Tên đăng nhập:</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                <asp:Label ID="Ten_Dang_Nhap" runat="server" 
                Text='<%# Eval("tenDangNhap") %>' />
            
            </div>
        </div>
        <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Họ tên:</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                <asp:TextBox runat="server" ID="txtHoTen"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtHoTen" ErrorMessage="Chưa nhập họ tên">*</asp:RequiredFieldValidator>
            
                <asp:TextBox ID="txtMaSach" runat="server"></asp:TextBox>
            
            </div>
        </div>
         <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Email:</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                    <asp:TextBox runat="server" ID="txtEmail"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="txtEmail" Display="Dynamic" 
                        ErrorMessage="Chưa nhập địa chỉ email">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="Không đúng định dạng email" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            
            </div>
        </div>
         <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Địa chỉ</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                <asp:TextBox runat="server" ID="txtDiaChi" Height="50px" TextMode="MultiLine" 
                    Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                    ControlToValidate="txtDiaChi" ErrorMessage="Chưa nhập địa chỉ">*</asp:RequiredFieldValidator>
            
                <textarea ID="Dia_chi" runat="server" name="S1" style="resize:none; height: 52px; width: 298px"></textarea></div>
        </div>
        <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Điện thoại:</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                <asp:TextBox runat="server" ID="txtDienThoai" Height="22px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtDienThoai" ErrorMessage="Chưa nhập số điện thoại">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="txtDienThoai" 
                    ErrorMessage="Số điện thoại không đúng định dạng" ValidationExpression="[\d]+"></asp:RegularExpressionValidator>
            
            </div>
        </div>
        <div class="div-table-row">
            <div class="div-table-col" style="width:180px; vertical-align: top;" 
                align="left">
            
                Tài khoản:</div>
            <div class="div-table-col" style="width:400px; vertical-align: top;" 
                align="left">
            
                <asp:TextBox runat="server" ID="txtTaiKhoan" Height="22px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtTaiKhoan" ErrorMessage="Chưa nhập họ tên">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="txtTaiKhoan" 
                    ErrorMessage="Số tài khoản không đúng định dạng" ValidationExpression="[\d]+"></asp:RegularExpressionValidator>
            
            </div>
        </div>
    </div>
    <asp:Panel ID="PanelMatKhau" runat="server" Visible="False">
                    <div class="div-table-row">
                    <div class="div-table-col" style="width:580px; vertical-align: top;" 
                        align="left">
                    <table width="580">
                        <tr>
                            <td width="180">
                                Mật khẩu cũ:</td>
                            <td width="400">
                                <asp:TextBox ID="txtMatKhauCu" runat="server" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Mật khẩu mới 1:</td>
                            <td>
                                <asp:TextBox ID="txtMatKhauMoi1" runat="server" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Mật khẩu mới 2:</td>
                            <td>
                            <asp:TextBox ID="txtMatKhauMoi2" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToCompare="txtMatKhauMoi2" ControlToValidate="txtMatKhauMoi1" 
                                ErrorMessage="Không trùng mật khẩu mới 1"></asp:CompareValidator></td>
                        </tr>
                    </table>
                </div>
                </div>
                </asp:Panel>
                    <asp:ValidationSummary ID="ValidationSummaryLoi" runat="server" />
                    <asp:Button ID="btnDoiMK" runat="server" CausesValidation="False" 
                        onclick="btnDoiMK_Click" Text="Đổi mật khẩu" Width="99px" />
                    &nbsp;
                    <asp:Button ID="btnLuu" runat="server" onclick="btnLuu_Click" Text="Lưu" />
    </asp:Panel>
    

    <br />
    </asp:Content>

